package cn.mazexal.examapi.models.db;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;

/**
 * 
 *
 */
@Data
@TableName(value = "fin_order")
public class FinOrderDO implements Serializable {

	/**
	 * 订单 id
	 */
	@TableId(value = "id")
	private Long id;

	/**
	 * 订单 UUID
	 */
	@TableField(value = "uuid")
	private String uuid;

	/**
	 * 关联用户 id
	 */
	@TableField(value = "user_id")
	private Long userId;

	/**
	 * 支付类型
	 */
	@TableField(value = "pay_type")
	private Integer payType;

	/**
	 * 支付方式
	 */
	@TableField(value = "pay_way")
	private Integer payWay;

	/**
	 * 订单金额
	 */
	@TableField(value = "order_amount")
	private BigDecimal orderAmount;

	/**
	 * 
	 */
	@TableField(value = "pay_status")
	private Integer payStatus;

	/**
	 * 
	 */
	@TableField(value = "pay_order_create_time")
	private Long payOrderCreateTime;

	/**
	 * 关联渠道 id
	 */
	@TableField(value = "channel_id")
	private Long channelId;

	/**
	 * Ip地址
	 */
	@TableField(value = "create_ip")
	private String createIp;

	/**
	 * 支付参数
	 */
	@TableField(value = "pay_params")
	private String payParams;

	/**
	 * 
	 */
	@TableField(value = "pay_subject")
	private String paySubject;

	/**
	 * 
	 */
	@TableField(value = "pay_body")
	private String payBody;

	/**
	 * 
	 */
	@TableField(value = "apple_transaction_id")
	private String appleTransactionId;

	/**
	 * 是否首充
	 */
	@TableField(value = "first_recharge")
	private Integer firstRecharge;

	/**
	 * 
	 */
	@TableField(value = "apple_receipt_data")
	private String appleReceiptData;

	/**
	 * 支付成功ID
	 */
	@TableField(value = "pay_id")
	private Long payId;

	/**
	 *
	 */
	@TableField(value = "extra_info")
	private String extraInfo;
}